package com.woniuxy.mapper;

import com.woniuxy.entity.Camp;
import com.woniuxy.entity.CampExample;
import java.util.List;
import java.util.Map;

import com.woniuxy.vo.CampVO;
import org.apache.ibatis.annotations.Param;

public interface CampMapper {
    long countByExample(CampExample example);

    int deleteByExample(CampExample example);

    int deleteByPrimaryKey(Integer campId);

    int insert(Camp record);

    int insertSelective(Camp record);

    List<Camp> selectByExample(CampExample example);

    Camp selectByPrimaryKey(Integer campId);

    int updateByExampleSelective(@Param("record") Camp record, @Param("example") CampExample example);

    int updateByExample(@Param("record") Camp record, @Param("example") CampExample example);

    int updateByPrimaryKeySelective(Camp record);

    int updateByPrimaryKey(Camp record);

    //条件分页查询
    List<CampVO> pageSelectCampByExample(Map<String,Object> map);
    //统计总条数
    int countCampByExample(Map<String,Object> map);

    /**
     * 在新增美食中通过选择城市选择营地
     * @param cityId
     * @return
     */
    List<Camp> selectCampByCityName(int cityId);

    //查询所有营地信息
    List<CampVO> selectAllCampVO();
}